cmake_minimum_required(VERSION 3.10)
project(test)

file(GLOB SOURCE_FILES "*.c")

include_directories(/opt/homebrew/Cellar/sdl2/2.30.11/include/)

# 查找 SDL2 库
add_subdirectory(mayUI)
add_subdirectory(sdl_lcd)

include_directories(mayUI)


# 添加可执行文件
add_executable(test ${SOURCE_FILES})

# 链接 SDL2 库
target_link_libraries(test PRIVATE sdl_lcd mayui)

set(CMAKE_FILES_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/output)
